<?php
/**
 * @package      OWNServices
 * @subpackage   site
 *
 * @author       Sanawin Tinsuwan
 * @copyright    Copyright (C) 20014 Sanawin Tinsuwan. All rights reserved.
 * @license      http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt
 */

defined('_JEXEC') or die();
?>
<form action="<?php echo JRoute::_('index.php?option=com_ownservices&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-horizontal">
	<div class='box box-primary'>
	
		<div class='box-header'>
		   <h3 class='box-title'>Member Details</h3>
		</div>
		<div class='box-body pad'>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('firstname'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('firstname'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('lastname'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('lastname'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('nickname'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('nickname'); ?></div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('occupation'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('occupation'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('scpin'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('scpin'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('currency'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('currency'); ?></div>
					</div>
				</div>
			</div>
		</div>


		<div class='box-header'>
		   <h3 class='box-title'>Access Level</h3>
		</div>
		<div class='box-body pad'>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('role'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('role'); ?></div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('branch_id'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('branch_id'); ?></div>
					</div>
				</div>
			</div>
		</div>


		<div class='box-header'>
		   <h3 class='box-title'>Document / Electronic Data Source</h3>
		</div>
		<div class='box-body pad'>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('doc_type'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('doc_type'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('doc_number'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('doc_number'); ?></div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('doc_expire'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('doc_expire'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('issuer'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('issuer'); ?></div>
					</div>
				</div>
			</div>
		</div>

		<div class='box-header'>
		   <h3 class='box-title'>Contact Details</h3>
		</div>
		<div class='box-body pad'>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('address'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('address'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('city'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('city'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('province'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('province'); ?></div>
					</div>
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('country'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('country'); ?></div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<div class="col-lg-4"><?php echo $this->form->getLabel('postcode'); ?></div>
						<div class="col-lg-7"><?php echo $this->form->getInput('postcode'); ?></div>
					</div>
				</div>
			</div>
		</div>
		
		
		<div class="box-footer">
			<button class="btn btn-primary" type="submit">Submit</button>
		</div>
	</div>	
	<input type="hidden" name="task" value="member.edit" />
	<?php echo JHtml::_('form.token'); ?>
</form>
<!-- AdminLTE App -->
<script src="<?php echo JUri::base(true).'/media/com_ownservices/js/AdminLTE/app.js'; ?>" type="text/javascript"></script>